const USER_KEY = 'crm-admin-user'

function getLocalUser() {
  return localStorage.getItem(USER_KEY)
}

function setLocalUser(user) {
  return localStorage.setItem(USER_KEY, JSON.stringify(user))
}

function removeLocalUser() {
  return localStorage.removeItem(USER_KEY)
}

export { getLocalUser, setLocalUser, removeLocalUser }
